package com.wjc.demo.test;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @description: TODO
 * @author: wzj
 * @create: 2019/3/8 16:17
 */
@Configuration
public class APOJO {
    @Bean
    public APOJO apojo(){
        return new APOJO();
    }

    @Bean
    public BPOJO bpojo(){
        BPOJO bpojo=new BPOJO();
        bpojo.setApojo(apojo());
        return bpojo;
    }
}
